package com.ddc.api;

import com.ddc.api.param.infomation.PushInformationParam;
import com.wang.commons.result.Result;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@ApiModel("推送公示公告的接口")
public interface InformationApi {
    //发送公司公告
    //展示公告标题，公告内容
    @PostMapping("push")
    @ApiOperation("推送公司公告的接口")
    public Result pushInformation(@RequestBody PushInformationParam pfp);

    //常见问题的解答
    //展示用户问题的答案
    @ApiOperation("常见问题的解答")
    @GetMapping("answer/{keyword}")
    public Result questtionAndAnswer(@ApiParam("问题关键词") @PathVariable("keyword") String keyword);


}
